package com.sitech.openapi.service;

import com.sitech.openapi.mapper.QryWorkOrderMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by zhangsq on 2018/12/8.
 * 关于随选宽带甩单集约销售支撑工作的通知需求
 * 查询施工工单
 */
@Service
@Slf4j
public class QryWorkOrderServiceImpl implements QryWorkOrderService {
    ;

    @Autowired
    private QryWorkOrderMapper qryWorkOrderMapper;

    public List qryWorkOrderInfo(Map inMap) throws Exception {
        Map retMap = new HashMap();
        List list = new ArrayList<>();
        try {
            list = qryWorkOrderMapper.queryWorkOrderInfo(inMap);

        } catch (Exception e) {
            log.info(e.getMessage());
            e.printStackTrace();
            throw new Exception(e.getMessage());
        }

        return list;
    }
}
